package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vast.system.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@ApiModel(value="com.vast.admin.entity.CompanyPaymentType")
@Data
@TableName(value = "company_payment_type")
public class CompanyPaymentType extends SuperEntity {
//     @TableId(value = "id", type = IdType.AUTO)
//    @ApiModelProperty(value="null")
//    private Long id;

    /**
     * 企业ID
     */
    @TableField(value = "company_id")
    @ApiModelProperty(value="企业ID")
    private Long companyId;

    /**
     * 起始金额（包含）
     */
    @TableField(value = "start_amount")
    @ApiModelProperty(value="起始金额（包含）")
    private Double startAmount;

    /**
     * 终止金额（不包含）
     */
    @TableField(value = "end_amount")
    @ApiModelProperty(value="终止金额（不包含）(-1表示无穷大)")
    private Double endAmount;

    /**
     * 付费方式（1固定金额 2合同金额百分比）
     */
    @TableField(value = "type")
    @ApiModelProperty(value="付费方式（1固定金额 2合同金额百分比）")
    private Integer type;

    /**
     * 固定金额
     */
    @TableField(value = "amount")
    @ApiModelProperty(value="固定金额")
    private Double amount;

    /**
     * 合同金额百分比
     */
    @TableField(value = "percent")
    @ApiModelProperty(value="合同金额千分比")
    private Double percent;

//    /**
//     * 创建者
//     */
//    @TableField(value = "create_by")
//    @ApiModelProperty(value="创建者")
//    private Long createBy;
//
//    /**
//     * 创建时间
//     */
//    @TableField(value = "create_time")
//    @ApiModelProperty(value="创建时间")
//    private Date createTime;
//
//    /**
//     * 更新者
//     */
//    @TableField(value = "update_by")
//    @ApiModelProperty(value="更新者")
//    private Long updateBy;
//
//    /**
//     * 更新时间
//     */
//    @TableField(value = "update_time")
//    @ApiModelProperty(value="更新时间")
//    private Date updateTime;
//
//    /**
//     * 逻辑删除 0-删除, 默认-1
//     */
//    @TableField(value = "valid")
//    @ApiModelProperty(value="逻辑删除 0-删除, 默认-1")
//    private Integer valid;

    public static final String COL_COMPANY_ID = "company_id";

    public static final String COL_START_AMOUNT = "start_amount";

    public static final String COL_END_AMOUNT = "end_amount";

    public static final String COL_TYPE = "type";

    public static final String COL_AMOUNT = "amount";

    public static final String COL_PERCENT = "percent";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_VALID = "valid";
}